from uiFiles import ui_wificonnect
from gtyConfig import language
from PyQt5.QtWidgets import QDialog

class WifiConnect(QDialog, ui_wificonnect.Ui_Dialog):
    def __init__(self, mainPage, parent=None):
        super(WifiConnect, self).__init__(parent)
        self.setupUi(self)
        self.initlanguage()
        self.mainPage = mainPage

    def initlanguage(self):
        self.pushButton.setText(language.wifi_confirm)
        self.pushButton_2.setText(language.wifi_cancel)


